<?php

/**
 * LEAGUEMan
 * 
 * Copyright (C) 2007 Marko Bischof
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );

$clubs = $this->info->getClubs();

?>

<table class="contentpaneopen">
	<tr>
		<td class="sectiontableheader">&nbsp;</td>
		<td class="sectiontableheader">Club</td>
		<td class="sectiontableheader">Website</td>
	</tr>
<?php foreach($clubs AS $row) : ?>
	<tr class="<?php $this->plugin("toggle", "sectiontableentry1", "sectiontableentry2"); ?>">
		<td width="15%" align="center"><?php $this->plugin("thumb", "logos", $row->club_logo, 18, 18);?></td>
		<td width="45%">
			<a href="<?php echo sefRelToAbs("index.php?option=com_leagueman&amp;func=teaminfo&amp;tm={$row->teammap_id}&amp;Itemid={$this->Itemid}"); ?>">
				<?php echo $row->club_name; ?>
			</a>
		</td>
		<td width="40%">
			<a href="<?php echo $row->club_internet;?>" target="_blank">
				<?php echo $row->club_internet; ?>
			</a>
		</td>
	</tr>
<?php endforeach ?>
</table>